package com.bwie.domain;

import lombok.Data;
import org.dromara.easyes.annotation.IndexField;
import org.dromara.easyes.annotation.IndexId;
import org.dromara.easyes.annotation.IndexName;
import org.dromara.easyes.annotation.rely.FieldType;
import org.dromara.easyes.annotation.rely.IdType;

@Data
@IndexName("prize")
public class PrizeEs {
    @IndexId(type = IdType.CUSTOMIZE)
    private String prizeId;

    /**
     * 奖品名称
     */
    @IndexField(fieldType = FieldType.TEXT,analyzer = "ik_max_word")
    private String prizeName;


    /**
     * 活动id
     */
    @IndexField(fieldType = FieldType.INTEGER)
    private Integer lottoId;

    /**
     * 奖品总数量
     */
    @IndexField(fieldType = FieldType.INTEGER)
    private Integer totalCount;

    /**
     * 剩余数量
     */
    @IndexField(fieldType = FieldType.INTEGER)
    private Integer remainingCount;

    /**
     * 中奖概率
     */
    @IndexField(fieldType = FieldType.DOUBLE)
    private double winProbability;

    /**
     * 图片
     */
    @IndexField(fieldType = FieldType.KEYWORD)
    private String image;







}
